package io.wit.modules.wit.service;

import io.wit.modules.wit.entity.FarmEntity;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * 基地管理
*/
public interface FarmService {
	
	FarmEntity queryObject(Long farmId);

	String queryMap(final Long farmId);

	List<FarmEntity> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(FarmEntity farm);

    String save(final HttpServletRequest request);
	
	void update(FarmEntity farm);

	String update(final HttpServletRequest request);

	void delete(Long farmId);
	
	void deleteBatch(Long[] farmIds);

	List<FarmEntity> getAllFarm(Map<String, Object> map);

	List<FarmEntity> farmList(Long subjectId);

	List<FarmEntity> getFarm(Long county);

	List<FarmEntity> farmLists(Long subjectId);

	String getTypeArea();

	String getTypeSales();

	String getTypePlant();

	String getTypeUnit();

    List<Map<String,Object>> mapDashboard(final Map<String,Object> map);

    List<Map<String,Object>> getProxyArea(final Map<String,Object> map);
}
